package o;

import java.net.Proxy;
import java.net.ProxySelector;
import java.util.List;
import javax.annotation.Nullable;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
import o.fur.a;

public final class ftt {
    @Nullable
    public final SSLSocketFactory ʻ;
    @Nullable
    final HostnameVerifier ʼ;
    final List<fud> ʽ;
    final fuj ˊ;
    final ftx ˋ;
    @Nullable
    final fty ˋॱ;
    final List<fut> ˎ;
    final SocketFactory ˏ;
    private String ˏॱ;
    final fur ॱ;
    @Nullable
    final Proxy ॱॱ;
    final ProxySelector ᐝ;

    public ftt(String str, int i, fuj o_fuj, SocketFactory socketFactory, @Nullable SSLSocketFactory sSLSocketFactory, @Nullable HostnameVerifier hostnameVerifier, @Nullable fty o_fty, ftx o_ftx, @Nullable Proxy proxy, List<fut> list, List<fud> list2, ProxySelector proxySelector) {
        this.ॱ = new a().ˋ(sSLSocketFactory != null ? "https" : "http").ˎ(str).ˏ(i).ॱ();
        if (o_fuj == null) {
            throw new NullPointerException("dns == null");
        }
        this.ˊ = o_fuj;
        if (socketFactory == null) {
            throw new NullPointerException("socketFactory == null");
        }
        this.ˏ = socketFactory;
        if (o_ftx == null) {
            throw new NullPointerException("proxyAuthenticator == null");
        }
        this.ˋ = o_ftx;
        if (list == null) {
            throw new NullPointerException("protocols == null");
        }
        this.ˎ = fvg.ˏ((List) list);
        if (list2 == null) {
            throw new NullPointerException("connectionSpecs == null");
        }
        this.ʽ = fvg.ˏ((List) list2);
        if (proxySelector == null) {
            throw new NullPointerException("proxySelector == null");
        }
        this.ᐝ = proxySelector;
        this.ॱॱ = proxy;
        this.ʻ = sSLSocketFactory;
        this.ʼ = hostnameVerifier;
        this.ˋॱ = o_fty;
        this.ˏॱ = null;
    }

    public String ˏ() {
        return this.ˏॱ;
    }

    public void ˎ(String str) {
        this.ˏॱ = str;
    }

    public fur ˊ() {
        return this.ॱ;
    }

    public fuj ˎ() {
        return this.ˊ;
    }

    public SocketFactory ˋ() {
        return this.ˏ;
    }

    public ftx ॱ() {
        return this.ˋ;
    }

    public List<fut> ʻ() {
        return this.ˎ;
    }

    public List<fud> ʼ() {
        return this.ʽ;
    }

    public ProxySelector ᐝ() {
        return this.ᐝ;
    }

    @Nullable
    public Proxy ʽ() {
        return this.ॱॱ;
    }

    @Nullable
    public SSLSocketFactory ॱॱ() {
        return this.ʻ;
    }

    @Nullable
    public HostnameVerifier ͺ() {
        return this.ʼ;
    }

    @Nullable
    public fty ˋॱ() {
        return this.ˋॱ;
    }

    public boolean equals(@Nullable Object obj) {
        return (obj instanceof ftt) && this.ॱ.equals(((ftt) obj).ॱ) && ˏ((ftt) obj);
    }

    public int hashCode() {
        int hashCode;
        int i = 0;
        int hashCode2 = (((((((((((this.ॱ.hashCode() + 527) * 31) + this.ˊ.hashCode()) * 31) + this.ˋ.hashCode()) * 31) + this.ˎ.hashCode()) * 31) + this.ʽ.hashCode()) * 31) + this.ᐝ.hashCode()) * 31;
        if (this.ॱॱ != null) {
            hashCode = this.ॱॱ.hashCode();
        } else {
            hashCode = 0;
        }
        hashCode2 = (hashCode + hashCode2) * 31;
        if (this.ʻ != null) {
            hashCode = this.ʻ.hashCode();
        } else {
            hashCode = 0;
        }
        hashCode2 = (hashCode + hashCode2) * 31;
        if (this.ʼ != null) {
            hashCode = this.ʼ.hashCode();
        } else {
            hashCode = 0;
        }
        hashCode = (hashCode + hashCode2) * 31;
        if (this.ˋॱ != null) {
            i = this.ˋॱ.hashCode();
        }
        return hashCode + i;
    }

    boolean ˏ(ftt o_ftt) {
        if (this.ˊ.equals(o_ftt.ˊ) && this.ˋ.equals(o_ftt.ˋ) && this.ˎ.equals(o_ftt.ˎ) && this.ʽ.equals(o_ftt.ʽ) && this.ᐝ.equals(o_ftt.ᐝ) && fvg.ॱ(this.ॱॱ, o_ftt.ॱॱ) && fvg.ॱ(this.ʻ, o_ftt.ʻ) && fvg.ॱ(this.ʼ, o_ftt.ʼ) && fvg.ॱ(this.ˋॱ, o_ftt.ˋॱ) && ˊ().ॱॱ() == o_ftt.ˊ().ॱॱ()) {
            return true;
        }
        return false;
    }

    public String toString() {
        StringBuilder append = new StringBuilder().append("Address{").append(this.ॱ.ʻ()).append(":").append(this.ॱ.ॱॱ());
        if (this.ॱॱ != null) {
            append.append(", proxy=").append(this.ॱॱ);
        } else {
            append.append(", proxySelector=").append(this.ᐝ);
        }
        append.append("}");
        return append.toString();
    }
}
